﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Category.aspx.cs" Inherits="famails.BackEnd.Blog.Category" MasterPageFile="~/Master.Master" %>


<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<div style="width:100%;padding:10px;"> 
<!--start content 01-->
    <div class="col-md-12 col-xs-12 col-sm-12 col-lg-12" style="border:1px solid #333;margin-bottom:10px;padding:0px;">
        <div class="col-md-12 col-xs-12 col-sm-12 col-lg-12" style="padding:10px 20px;background:#000;color:#fff;font-size:18px;font-weight:bold;position:relative;">   
            Thông tin gói dịch vụ
        </div>
        <div class="col-md-12 col-xs-12 col-sm-12 col-lg-12" style="height: auto;padding:10px;">
            <asp:Panel Visible="false" ID="pnError" runat="server">
                <div class="error-box round">
                    <asp:Label ID="lblError" runat="server" Text=""></asp:Label>
                </div>
            </asp:Panel>
            <asp:Panel Visible="false" ID="pnSuccess" runat="server">
                <div class="confirmation-box round">
                    <asp:Label ID="lblSuccess" runat="server" Text=""></asp:Label>
                </div>
            </asp:Panel>
        </div>
        <asp:HiddenField ID="hdfId" runat="server" />
        <div class="col-md-6 col-xs-12 col-sm-6 col-lg-6" style="height: auto;padding:10px;">
            <fieldset>
                <p>
                    <label for="simple-input" style="font-weight: bolder; text-transform: none">
                        Tên chuyên mục</label>
                    <asp:TextBox ID="txtname" CssClass="form-control" style="border:1px solid #333;border-radius:0px;" runat="server"></asp:TextBox>
                    <div style="float:left;padding:0px 10px;">
                        <asp:CheckBox ID="cbIsShow" runat="server" Checked="true" />
                    </div>
                    <div style="float:left;padding:4px;">
                        Hiện bài viết
                    </div>
                     
                </p>
            </fieldset>
        </div>
        <div class="col-md-6 col-xs-12 col-sm-6 col-lg-6" style="height: auto;padding:10px;">
            <fieldset>
                <p>
                    <label for="simple-input" style="font-weight: bolder; text-transform: none">
                        Diễn giải</label>
                    <asp:TextBox ID="txtdescription"  TextMode="MultiLine" CssClass="form-control" style="border:1px solid #333;border-radius:0px;" runat="server"></asp:TextBox>
                </p>
            </fieldset>
        </div>
        <div class="col-md-12 col-xs-12 col-sm-12 col-lg-12" style="height: auto;padding:10px;">
            <fieldset>
                <button runat="server" class="btn" style="background:#333;color:#fff;text-align:center;padding:6px 15px;border-radius:0px;" onserverclick="btnSave_Click">
                    <i class="fa fa-save"></i> Lưu
                </button>
            </fieldset>
        </div>

    </div>
</div>
<div style="width:100%;padding:10px;"> 
<!--start content 01-->
    <div class="col-md-12 col-xs-12 col-sm-12 col-lg-12" style="border:1px solid #333;margin-bottom:10px;padding:0px;">
        <div class="col-md-12 col-xs-12 col-sm-12 col-lg-12" style="padding:10px 20px;background:#000;color:#fff;font-size:18px;font-weight:bold;position:relative;">   
            Danh sách chuyên mục
        </div>
        <div class="col-md-12 col-xs-12 col-sm-12 col-lg-12" style="height: auto;padding:10px;">
                <fieldset>
                    <div class=" table-responsive">
                    <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                        <thead>
                            <tr>
                                <th>Tên chuyên mục</th>
                                <th>Ngày tạo</th>
                                <th>Hiển thị</th>
                                <th>Điều chỉnh</th>
                            </tr>
                        </thead>
                        <tbody>
                    <asp:Repeater ID="dlCategory" runat="server">
                         <ItemTemplate>
                            <tr>
                                <td>
                                    <asp:Label ID="lblAttr" runat="server" Text='<%# Eval("CategoryName") %>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblGmail" runat="server" Text='<%# Eval("CreateDate") %>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblShow" runat="server" Text='<%# Eval("Show") %>'></asp:Label>
                                </td>
                                <td>
                                    <asp:ImageButton ID="btnEdit" runat="server" ImageUrl="../resource/images/edit-validated-icon.png"
                                        CommandArgument='<%# Eval("CategoryID") %>' OnClick="btnEdit_Click" />
                                    <asp:ImageButton ID="btnDelete" runat="server" ImageUrl="../resource/images/Delete-icon.png"
                                        CommandArgument='<%# Eval("CategoryID") %>'
                                        OnClientClick="return confirmDelete('Bạn có chắc rằng sẽ xóa thuộc tính này không ?')"
                                        OnClick="btnDelete_Click" />
                                </td>
                            </tr>     
                         </ItemTemplate>
                     </asp:Repeater>
                        </tbody>
                    </table>
                </div>
                </fieldset>
        </div>
    </div>
</div>

</asp:Content>

